package com.zelin.order.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zelin.dao.AddressDao;
import com.zelin.dao.OrderDao;
import com.zelin.entity.AddressEntity;
import com.zelin.entity.OrderEntity;
import com.zelin.order.service.AddressService;
import com.zelin.order.service.OrderService;

import java.util.List;

/**
 * ------------------------------
 * 功能：
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/8/14-15:29
 * ------------------------------
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressDao, AddressEntity> implements AddressService {

    /**
     * 功能: 根据登录名得到地址列表
     * 参数:
     * 返回值: java.util.List<com.zelin.entity.AddressEntity>
     * 时间: 2021/8/14 15:35
     */
    @Override
    public List<AddressEntity> getAddresList(String name) {
        List<AddressEntity> addressEntities = this.list(new QueryWrapper<AddressEntity>().eq("user_id", name));
        return addressEntities;
    }
}
